package com.jieshuibao.model.db;

import java.util.Date;

public class RedEnvelopes {
    private String uuid;

    private Double money;

    private String sendPhoneNum;

    private String userPhoneNum;

    private Date sendDate;

    private Date receiveDate;

    private String redType;

    private String questionUuid;

    private String redStatus;

    private String payType;
    
    private long time;
    /**
     * 被邀请人
     */
    private String inviterName;
    
    public long getTime() {
    	Date receiveDate2 = getReceiveDate();
    	
		return time==0?receiveDate2.getTime():time;
	}

	public void setTime(long time) {
		this.time = time;
	}

	public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getSendPhoneNum() {
        return sendPhoneNum;
    }

    public void setSendPhoneNum(String sendPhoneNum) {
        this.sendPhoneNum = sendPhoneNum;
    }

    public String getUserPhoneNum() {
        return userPhoneNum;
    }

    public void setUserPhoneNum(String userPhoneNum) {
        this.userPhoneNum = userPhoneNum;
    }

    public Date getSendDate() {
        return sendDate;
    }

    public void setSendDate(Date sendDate) {
        this.sendDate = sendDate;
    }

    public Date getReceiveDate() {
        return receiveDate;
    }

    public void setReceiveDate(Date receiveDate) {
        this.receiveDate = receiveDate;
    }

    public String getRedType() {
        return redType;
    }

    public void setRedType(String redType) {
        this.redType = redType;
    }

    public String getQuestionUuid() {
        return questionUuid;
    }

    public void setQuestionUuid(String questionUuid) {
        this.questionUuid = questionUuid;
    }

    public String getRedStatus() {
        return redStatus;
    }

    public void setRedStatus(String redStatus) {
        this.redStatus = redStatus;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

	public String getInviterName() {
		return inviterName;
	}

	public void setInviterName(String inviterName) {
		this.inviterName = inviterName;
	}
}